﻿using MyRandoms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyRandom
{
    class Program
    {
        static void Main(string[] args)
        {
            // TestBaseRandoms();
            TestRandomOperate();
            Console.ReadKey();
        }

        public static void TestBaseRandoms()
        {
            Console.WriteLine("随机字符串\t"+BaseRandom.GetRandomString());
            Console.WriteLine("用户定义长度的随机字符串\t" + BaseRandom.GetRandomString(3));
            Console.WriteLine("默认随机数\t" + BaseRandom.GetRandomNumber());
            Console.WriteLine($"{4}到{10}范围内的随机数\t{BaseRandom.GetRandomNumber(4,10)}");
            Console.ReadKey();

        }

        public static void TestRandomOperate()
        {
            RandomOperate random = new RandomOperate();
            Console.WriteLine("随机生成字符串\t" + random.GenerateCheckCode(2));
            Console.WriteLine("随机生成不重复数字字符串\t" + random.GenerateCheckCodeNum(3));
        }
    }
}
